<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<title>Main</title>
	<link href="../Public/style/skin.css" rel="stylesheet" type="text/css">
</head>
<body>
  <div class="location">服务器管理</div>
  <div class="massaction">
   <form action="__URL__/index" method="post">
		筛选：<input type="text" name="keyword" />
			 <select name="ftype">
				<option value="id">编号</option>
				<option value="name">服务器名</option>
			</select>
			<input type="submit" value="查询" class="buttons_a"/>
			<script>
		     		function del(){
		          		if(window.confirm('请确认是否删除？')){
		          			document.adminForm.submit();
		          		}
		      		}
		     </script>
			  <eq name="coption.c" value="1"><span class="buttons_a"><a href="__URL__/add">创建</a></span></eq>
			  <eq name='coption.d' value='1'><span class="buttons_a"><a href="#" onclick="del();">删除</a></span></eq>
  </form>
 </div>

 <form name="adminForm" action="__URL__/delete" method="post">
 <table class="bd_c_1" cellpadding="0" cellspacing="0">
	<tr class="headings">
		<td style='width:2%'>#</td>
		<td>编号</td>
		<td>服名</td>
		<td>域名</td>
		<td>地址IP</td>
	</tr>
	<volist name="list" id="vo" key="k">
		<if condition="$key%2 eq 0">
			<tr>
		<else/>
			<tr bgcolor="#F6F6F6">
		</if>
				<td><input type="checkbox" name="did[{$k}]" value="{$vo.id}" /></td>
				<td>{$vo.id}</td>
				<td><a href='__URL__/edit?id={$vo.id}'>{$vo.name}</a></td>
				<td>{$vo.domain}</td>
				<td>{$vo.ip}</td>
			</tr>
	</volist>
	<tr bgcolor="#F6F6F6">
		<td colspan="8" align="right"><div class="vpager">{$page}</div>
  	</td>
	</tr>
 </table>
 </form>
</body>
</html>

